#ifndef TABLESIZEWIDGET_H
#define TABLESIZEWIDGET_H

#include <QDialog>

class tableSizeWidget : public QDialog
{
    Q_OBJECT

public:
    tableSizeWidget(QWidget *parent = 0);
	int getCellX() {return numX;}
	int getCellY() {return numY;}

protected:
    void paintEvent(QPaintEvent *event);
    void leaveEvent(QEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
	void checkMouse();

	const static int size, gap, edgeGap;     //the size of each "box" and the gaps
    int numX, numY;                 //number of boxes on x and y axis
};

#endif // TABLESIZEWIDGET_H
